package com.android.home.mvp.present.home;

import com.android.common.base.BasePresentImpl;
import com.android.common.base.BaseView;
import com.android.common.network.BusinessObserver;
import com.android.home.mvp.model.home.HomeSecondApi;

public class HomeSecondPresent extends BasePresentImpl<BaseView, HomeSecondApi> {

    public static final String GET_HOME_SECOND_LIST = "getHomeSecondList";
    public HomeSecondPresent(BaseView homeSecondView) {
        super(homeSecondView);
    }

    /**
     * 获取列表
     */
    public void getHomeSecondList() {
        compose(getService(HomeSecondApi.class).getHomeSecondList())
            .subscribe(new BusinessObserver<>(mBaseView,GET_HOME_SECOND_LIST));
    }
}
